package com.hedl.elasticsearch.po;


/**
 * @author hedl
 * @date 2023/10/30
 */
public class Apple {
    private String name;
    private String colour;
    private Integer weight;

    public Apple(){}

    public Apple(String name, String colour, Integer weight) {
        this.name = name;
        this.colour = colour;
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "Apple [name=" + name + ", colour=" + colour + ", weight=" + weight + "]";
    }

    public static boolean isName(Apple apple){
        return "大西瓜6".equals(apple.getName());
    }
}
